package icegps.com.pingdj.map.count;


import icegps.com.pingdj.App;
import icegps.com.pingdj.map.bean.MapStatus;

/**
 * Created by 111 on 2018/3/6.
 */

public class ScreenCount {
    /**
     * 获取当前屏幕中心的偏移量
     *
     * @return
     */
    public static float getScreenCyByTy(MapStatus mapStatus) {
        float screenCy = App.getInstance().getWindowHeight()/ 2 - mapStatus.getSumTy();
        return screenCy;
    }

    /**
     * 获取当前屏幕中心的偏移量
     *
     * @return
     */
    public static float getScreenCxByTx(MapStatus mapStatus) {
        float screenCx = App.getInstance().getWindowWidth()/ 2 - mapStatus.getSumTx();
        return screenCx;
    }
}
